package com.my.attendance.entity;

import java.util.Date;

/**
 * 考勤表
 */

public class Attendance{
	private Integer id;
	private Integer employee_number;//员工编号
	private Date day;//日期
	private String time_type;//打卡时间段：上午、下午、正常、加班
	private Date start_time;//开始打卡时间
	private String start_type;//开始打卡状态：正常、迟到、早退
	private Date end_time;//结束打卡时间
	private String end_type;//结束打卡状态：正常、迟到、早退
	private String work_type;//工作类型
	private String notes;//备注

	private Employee employee;

	public Attendance(Integer employee_number, Date day, String time_type, String start_type) {
		this.employee_number = employee_number;
		this.day = day;
		this.time_type = time_type;
		this.start_type = start_type;
	}

	public Attendance() {
	}
	public Integer getId() {
		return id;
	}

	public Attendance(Integer employee_number, Date day, String time_type, Date start_time, String start_type) {
		this.employee_number = employee_number;
		this.day = day;
		this.time_type = time_type;
		this.start_time = start_time;
		this.start_type = start_type;
	}

	public Attendance(Integer employee_number, Date day, String start_type) {
		this.employee_number = employee_number;
		this.day = day;
		this.start_type = start_type;
	}

	public Attendance(Integer employee_number, Date day, Date end_time, String end_type) {
		this.employee_number = employee_number;
		this.day = day;
		this.end_time = end_time;
		this.end_type = end_type;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getEmployee_number() {
		return employee_number;
	}

	public void setEmployee_number(Integer employee_number) {
		this.employee_number = employee_number;
	}

	public Date getDay() {
		return day;
	}

	public void setDay(Date day) {
		this.day = day;
	}

	public String getTime_type() {
		return time_type;
	}

	public void setTime_type(String time_type) {
		this.time_type = time_type;
	}

	public Date getStart_time() {
		return start_time;
	}

	public void setStart_time(Date start_time) {
		this.start_time = start_time;
	}

	public String getStart_type() {
		return start_type;
	}

	public void setStart_type(String start_type) {
		this.start_type = start_type;
	}

	public Date getEnd_time() {
		return end_time;
	}

	public void setEnd_time(Date end_time) {
		this.end_time = end_time;
	}

	public String getEnd_type() {
		return end_type;
	}

	public void setEnd_type(String end_type) {
		this.end_type = end_type;
	}

	public String getWork_type() {
		return work_type;
	}

	public void setWork_type(String work_type) {
		this.work_type = work_type;
	}

	public String getNotes() {
		return notes;
	}

	public void setNotes(String notes) {
		this.notes = notes;
	}

	public Employee getEmployee() {
		return employee;
	}

	public void setEmployee(Employee employee) {
		this.employee = employee;
	}
}
